Fixed typo on new hasOwnProperty function (has())