Made script to first clean html page using tidylib