Added fix for IE8 hasOwnProperty error