fix for window.hasOwnProperty not supported in IE