As before don't use `for` here as it [can open up a world of hurt](www.codelord.net/2014/03/14/please-use-hasownproperty-short-story-of-a-hack/) with sloppy code. Lodash style:

    var majority = _.sortByDescending(_.pairs(votes), function(x) { return x[2] })[0];
    return majority && majority[0];