creation of list on load.

Coded traversal of all text nodes and added them in a list.