made easy to add new currencies

- clean up the code for php and js
- wrap currencies data in single array so it is easy to add new
currencies without repeating code