Working javascript to edit and delete work experience