Converted the javascript files to coffeescript files