importing scraper function to web.js file