Added polyfills for IE8