function rate(id,rating) {
  window.location.href="/video/"+id+"/"+rating;
}
