commonjs module format
fix issues noticed by jshint
ignore grunt
get tests up and running with mocha