vote functionality missing js code