Externalised scraping logic into scraper.js (untested)
Fixed clear blob and recursion