add mocha and jshint testing, CI
semicolon and variable name fixes (can be changes in test/.jshintrc)
Travis CI config
Merge pull request #8 from mapmeld/add_testing

Add automated testing with mocha, jshint, Travis