Fraction calculate lib for javascript. support nodejs