Use Object.prototype.toString instead of window.toString due to IE issues
Merge pull request #7 from jeffcarp/master

Use Object.prototype.toString instead of window.toString due to IE issue