Escape unicode characters in JS
- Also fix some lint warnings