De-coffeescript javascript