Add hasOwnProperty to avoid conflicts with prototype extending libs