replaced js with coffeescript