Fix bug: No media attribute means it applies at all media
Update tests to work with AMD setup

Now all tests but the inline one pass (which is as expected, since this
wipes out all attributes on resize, and I’m not bothering to save them)
Recompile minified version