Fix IE8 compatibility.
Merge pull request #10 from ombr/ie8

Fix IE8 compatibility.