Added IE9 support using matchMedia polyfill