Web scraping script skeleton for nodejs