JavaScript library for quantity calculation and unit conversion