update coffeescript version
use new-style coffeescript compiler with mocha
refactor test