porting to coffee script