FYI a quick rundown of how to do that by @dorilama is here: Editing values from a custom JavaScript Embed