added logic to extract words from page