Here's a set of libraries made in JavaScript to do math. They can be used in simple mathematical operations as well as complex functions.