simplified the structure so that the user using scraper.js can use it with less configurations.