Fix for compatibility with IE10
Merge pull request #7 from okohll/master

IE10 fix