Fixed incompatibility with IE7/8
Typo fix
Merge pull request #1 from Magomogo/master

Fix to make it work on IE7/8