completes javascript removal of form