Converted web scraper to node.js and cleaned it up