Fix all JSHint warnings.
Add lib/*.js in JSHint target and the jshint one in test.