First pass at a refactor of scrape.js
Spaces, you fools