   use_key = v[0]
          use_value = v[1]
          sorted_obj[use_key] = use_value
        })
        return (sorted_obj)
      }


      stop = sortJsObject(top); //sort globally
      sustop = sortJsObject(ustop); //sort US states


      var places = {};

      //this function take a string of country/place name and calculate the data for it
      //return place[name] which is a dictonary that has everyday's dataset
      function calPlace(name) {
        var place = {}
        place[name] = {
      