Ajax call for votes finally working