Fixed while loop! Everything seems to be working. Next step is saving HTML