convert Java to CoffeeScript