Fixed a few bugs in main.js.erb. There were some strange linebreaks on the l18 lines for some reason.