[BUGFIX] Escape strings for JavaScript usage