migrate to coffee script