Added JS to voting functionality so page does not refresh