finished ajax-based voting