JSHint polyfill fixes