Actually implemented the main conversion method in JSQuantity