Tracking consumed request units with client-side code