Rewrite Emma.js with coffee script