Updating vote plugin to use json messages