Use Object.prototype.hasOwnProperty for doc in IE8

Test Plan: Loaded ballmer-peak example in IE8 without errors and interacted with the text field.
Merge pull request #1564 from spicyj/hop-ie8

Use Object.prototype.hasOwnProperty for doc in IE8