respect media attribute on external stylesheets
fallback to old behaviour, if no media attribute available
fix spelling / use window.matchMedia
added whitespace / newline
Merge pull request #12 from Mischi/matchMedia

respect media attribute on external stylesheets