IE7 and IE8 compatible

IE7 and IE8 compatibility added, only 2 lines modified, check the code and let me now if it's ok for you... If you accept both pull requests it will be needed to regenerate the minified file, because it doesn't include the not approved pull request.

Fixes #3