Remove Modernizr dependency

Added matchmedia function from Modernizr source code