added ajax call to scraper.php