start rewrite with coffee script