change use of hasOwnProperty

use hasOwnProperty from Object.prototype instead of particularly objects