Convert CoffeeScript to javascript