Js Dinamic Dialog Removed

The dialog has to be inside the html template