split scrapeState into buildLocationObject.js