updating balance in json with purchase, not appearing on homepage