javascript remove from array if exists