Switched from coffeescript to javascript