Moved all the coffeescript to here.