Use hasOwnProperty to place the properties correctly.