Cleanup of errors in JS files reported by JSHint