A library of javascript math functions