Javascript Destructuring Object Inside Object Js Methods