Base58 Encode Javascript