Fixed "invalid calling object" error in IE 10
Merge pull request #8 from h4/fixIE10

Fixed "invalid calling object" error in IE 10