Cleanup coffeescript code