best cross-browser way to get "actual" window width in js. This replaces the previously used $(window).width() that was unreliable because of the scroll bar. Requires Modernizr.
if (Modernizr.mq('(max-width: 767px)')) {
//...
} else {
//...
}