Fix logic error in `scrape-spec.js`