JS vender conversion to CoffeeScript