removed trailing whitespace from master.js file and converted master.js to coffeescript