Why am I getting...
SyntaxError: unterminated string literal
...in Firefox and...
Uncaug
Break up the string "" (in the javascript code); it will be interpreted as an actual closing script tag rather than the string literal you intend.
""
$(document).ready(function () { function addJSBeforeEndBody(code) { $('body').append('