add jshint + precommit-hook
add libs to .jshintignore
fix errors reported by jshint