working storage code, saves item in browser