Added polyfill for old browsers (IE8).