Minor bug fix for scrape.js