added vote jquery function back in