Fix: IE8 doesn't have window.hasOwnProperty()