How to perform a destructuring assignment of a javascript object to already declared variables insid