reporting bytes sent to js