Tracking down error in objectHasOwnProperty when using older browsers