fix coffescript compatibility