var max = function(obj, coord) {
                    return obj[0][coord] >= obj[1][coord] ? obj[0][coord] : obj[1][coord];
                };