fix for ie7
Merge pull request #9 from Trott/ie7

fix for ie7