fixed js-to-coffeescript mistakes