Robust and lightweight JavaScript finance library