Add NodeList#foreachWithIndex