Fixed JS to add deelte button to DOM.