fixed bug with media queries, also added script to support weinre remote debug