Implementation of Microsoft Excel financial functions in JavaScript