IE8 compatibility
Merge pull request #29 from nmorel/ie8

IE8 compatibility