use localforage for token / move scraper to a seprate file