title: How to switch between two currencies by reloading javascript?
body: <p>I have a javascript for counting price (it depends on many factors). I would like to have two currencies: euros and dollars. Currently the default one is euro. I would like to have two buttons for switching between them - one for euros and one for dollars. I imagine it would work like this: I would make two javascripts (I already have one of them - in which I calculate the price - let's call him europrice.js). Now I would create another one called dollarprice.js in which I would calculate the price in dollars. In default the website would have loaded with europrice.js. By clicking on "dollarbutton" the price would have reloaded this time with dollarprice.js and not europrice.js. I have tried to make this clear as much as I can, hopefully you understand :) Thanks for any advice</p>