reactored js, added currencies