$(document).ready(function() {
    var st = new SpeedTest();
    st.run({
      onEnd: function(speed) {
        // Set it in session for others to use.
    	$.ajax({
  		  url: "/bandwidth.html?KBps=" + speed.KBps,
  		  cache: false,
  		  success: function(html){
    		$("#viewBandwith").append('<li>' + html + '</li>');
  		  }
  		});
      }
    });
});
