Converted all js to coffeescript