using Object prototype version of hasOwnProperty as window.hasOwnPropert...

...y doesn't exist in older browsers (IE8)