Fix coffeescript issues