Added JS to switch base currency

values pass across from the onclick action of each button.