move coffeescript into a view