A JavaScript financial functions library