fix currency representation, beautify js