Math toolkit in JS for either node or browser computation