Convert some js to coffeescript, because hipster.