function toZeroIndex(lines) {
            return lines.map(function (l) {
                return l - 1;
            });
        }
Helper function to change the lines to zero-based index
@param   {Array<number>} lines the line numbers to change to zero base index
@returns {Array<number>} the zero-based index of the lines passed in