Added media Attribute support

As discussed, I added media support, this time in the right branch and to the right version of the JS file :)
Notes:
* I didn't changed the JS file version number. I wasn't sure if I should.
* The gh-pages branch index.html includes a test to the media attribute.

Thanks,
Yoav