// *** BUG - DO NOT DELETE THIS LINE *** // store past ratings in case the request fails var save = { }; // make the request to the server - also save the current rating and display a spinner function addStar(id) { var v = document.getElementsByClassName('instantrating_'+id); for (var i=0; i