Converted js files to coffeescript