Implements the getDigit method, and hooks an instance of MathJS to the window