Fixes invalid argument error on IE
Merge pull request #70 from chris-hanson/master

Fixes invalid argument error on IE