ajax method for getting votes