fix coffee-script 1.8 syntax errors