changed method of getting page text (for real this time)