fixed coffee script syntax bug