Fix polls js for case with only one poll.