impl a new OpenM-ID client in js