Rational Numbers - Javascript | SlaveCode