Fixed jshint issues with polyfill.