Added check for native matchMedia support so if it exists, use native otherwise polyfill matchMedia with Media.match.