Change referenced JS object