JS: correct xpath regeneration after deleting one line in Add child, fixes #53