switch to coffeescript, clean up JS