Modified prototype to use recursion for extracting text from tags due to structure of web page