Move more Javascript to Coffeescript.