Fix bug in scraper js