Messing with downloading HTML pages and writing to a local file