rewrited framework on coffeescript