AJAXify voting

Here I took voting, which was updating by refreshing the page each vote and added an ajax listener in the vote.js file. Once the vote is clicked I inject text into the vote span. A sample text would look like '1 vote' or '5 votes'. I use a custom pluralize method to get 'vote' or 'votes'.