Fixing escaping of strings when passed to JS functions. issue #26