);
            label = (new Date(d)).toString().substring(4, 10);
            // console.log(label);
            $("thead").append("<th style='text-align:center;' >" + label + "</th>");
          });


          $("tbody").html('');


          makeTable();


        }
        $('.loader').fadeOut("slow");

      })

      $(".leaflet-control-attribution")
        .css("background-color", "transparent")
        .html("");



    });

    /* When the user clicks on the button,
    toggle between hiding and s