Added polyfills for matchMedia and JSON (for IE8)