add .jshintrc
add browser tests
correct run tests in browser