delete workplace correct with javascript