Changed the javascript Jquery stuff over to coffeescript