Compatibility with Internet Explorer 7 and 8

This is the only fix needed to work under IE 7 and 8
Merge pull request #23 from sgreiner/master

Fix for compatibility with Internet Explorer 7 and 8