A JavaScript library for mathematics