continuing conversion from coffee to js
completed conversion to javascript
Merge pull request #15 from Postmedia/tojs

completed conversion to javascript