JS linked-list - delete() update