Proof (existence and uniqueness of completion)

Existence

Consider $l^\infty(M) = \set{\text{bounded functions }M \to \R}$ equipped with the sup metric $(f,g) \mapsto \|f - g\|_\infty \equiv \sup_{x\in M} |f(x) - g(x)|$.

Fix any $x_0\in M$, and define $$ \begin{align*} j: X &\to l^\infty(M) \\ x &\mapsto (y \mapsto d(x, y) - d(x_0, y)). \end{align*} $$ $j$ is well-defined, since by the triangle inequality $$ \begin{align*} |j(x)(y)| = |d(x,y) - d(x_0, y)| \leq d(x,x_0) \qquad \text{for all }y\in X \end{align*} $$ so $j(x)$ is bounded.

Moreover $j$ is isometric, because $$ \begin{align*} \|j(x) - j(x')\|_\infty ={}& \sup_{y\in X} \underbrace{|d(x,y) - d(x',y)|}_{\leq d(x,x')} = d(x,x') \end{align*} $$ where the supremum is attained at $y = x$.

Define $\tilde M = \overline{\im j}$ with $\tilde d(f,g) = \|f-g\|_\infty$. $\tilde M$ is a complete since it is closed in the complete space $l^\infty(M)$.

Uniqueness

Let $j_1: (M, d) \to (\tilde M_1, \tilde d_1)$ and $j_2: (M, d) \to (\tilde M_2, \tilde d_2)$ be isometric maps into two completions of $(M,d)$.

Define $$ \begin{align*} θ: \tilde M_1 &\to \tilde M_2 \\ \lim_{n\to \infty} j_1(x_n) &\mapsto \lim_{n\to \infty} j_2(x_n). \end{align*} $$ This is well-defined: since $\tilde M_1 = \overline{\im j_1}$, any element of $\tilde M_1$ is of the form $\lim_{n\to \infty} j_1(x_n)$ for a sequence $(x_n)_{n\in \N}$ in $M$. If $\lim_{n\to \infty} j_1(x_n) = \lim_{n\to \infty} j_1(x_n')$, $$ \begin{align*} 0 ={}& \tilde d_1(\lim_{n\to \infty} j_1(x_n), \lim_{n\to \infty} j_1(x_n')) \\ ={}& \lim_{n\to \infty} \tilde d_1(j_1(x_n), j_1(x_n')) \\ ={}& \lim_{n\to \infty} d(x_n, x_n') \\ ={}& \lim_{n\to \infty} \tilde d_2(j_2(x_n), j_2(x_n')) \\ ={}& \tilde d_2(\lim_{n\to \infty} j_2(x_n), \lim_{n\to \infty} j_2(x_n')) \end{align*} $$ so $\lim_{n\to \infty} j_2(x_n) = \lim_{n\to \infty} j_2(x_n')$.

This also shows $θ$ is isometric and bijective.