Switch from coffeescript to regular javascript