onLoad scraper function works properly now.