javascript changed to be deleted