JS(homepage) removed debugger and wrapped object iteration within a hasOwnProperty clause