Added destructuring for JS objects