no global amount var -- using localstorage instead