Adding polyfills and feature detection for IE9