Added event listener to run script on page load.
Added framework for iterating through text nodes.