Add IE8 support and polyfill