added fix for IE8 hasOwnProperty error