add enquire.js to the project (see message)
Install enquire.js and matchMedia.js to the project via Bower and list them as dependencies in bower.json. Add them to the site build Jade. Set up grunt/gulp tasks that copy them over from "bower_components".