Improved window width calculation and added Modernizr mq() support.