Update pageScraper.js

updated bug in page scraper