add mocha and jshint testing, CI
semicolon and variable name fixes (can be changes in test/.jshintrc)