Js updates for dialog for products. WIP