Javascript implementation of the RAPPOR algorithm