Add support for JS-defined Media Queries

Fix #3