using escape_javascript
more js/coffeescript changes