Clean up main.coffee a bit.