Fixed failure in scoping css which has media queries

The script fails when trying to scope css segment which has media
queries in it. I have made polifill to recursively apply for css rules
within media query.