Implemented vote functionality with jQuery, AJAX and JSON