IE8 compatibility
fix IE8 compatibility issues
Merge pull request #28 from nherment/patch-1

IE8 compatibility