Added client side code for casting votes on the comments