Clean up javascript
Use proper coffeescript for jCounter