work in progress, trying to finish crawl.js