Use JSHint to lint JS files during build and fix errors