Use Object.prototype.hasOwnProperty for doc in IE8

Test Plan: Loaded ballmer-peak example in IE8 without errors and interacted with the text field.