Use Object.prototype.toString for safetiness with IE