replace js with coffescript