>
  <script type='text/javascript'>

    var refreshedtimestamp = "";

    function updateData() { 
      // Get current config
      $.ajax({
        async: false,
        dataType: 'json',
        timeout: 1,
        url: '/config',
        success: function(result) {
          config = result;
        }
      });
      // get BTC rate for first currency
      $.ajax({
        async: false,
        dataType: 'json',
        timeout: 1,
        url: '/btc',
        success: function(result) {
          btc