Arithmetic/Rational/JavaScript: Difference between revisions