Finally got AJAX voting working