fix jshint test errors
fix browser test errors
test only ./test/tests.js