JavaScript library for physical quantity representation and conversion