Use accountingjs instead of $(filter)currency