Common finance and currency javascript methods