Mechcalc javascript calculator framework