DrDoc - 3:20 pm on May 14, 2013 (gmt 0)
Ok, did some more testing.
On really long strings, series of \t\r\n present in $(data) may trigger the error. Also, the presence of anything that looks like a JS comment (//, /*, */) may trigger a different error (unrecognized expression).
In both cases, $(data) alone fails.