Also a good idea to make sure window.mediaCheck exists before trying to use it...