Js fix delete uploads

re-registers the delete event when we replace the delete button