first run at coffeescripting it all