fixing coffee -> js conversion bug