helper function that grabs a web page