server.js: add support for receiving inputs and sending results from the scraper