There's no javascript backup for saslprep. Although using RFC 7613 (implemented by precis-js) instead appears to be a good option.