Use escapejs which already exists, and was in our i18n docs