use Object.toString() instead of window.toString() in all calls to prevent IE errors, refs #214
Merge pull request #226 from s7anley/master

use Object.toString() instead of window.toString()