Avoid 'invalid argument' on IE10.
Merge pull request #33 from gymglish/master

Avoid 'invalid argument' on IE10. Fixes #33