Add ::nodeAt method to documents and nodes