Fix js syntax in coffescript