Escapes the given string according the JavaScript code rules. This escapes among others the special
characters, the whitespace, the quotes and the unicode characters. Useful whenever you want to use a
Java string variable as a JavaScript string variable.