Improved CoffeeScript code