cleanup code after learning some more coffeescript