Completed basic math for string_fraction.js.