Simple Javascript library to calculate Internal Return Rate (IRR) and Net Present Value (NPV) for non periodic cashflows.