Bugfix; Javascript in javascript

Fixes a bug where the text entered inside a javascript string
contained ' or ".