function toLookup(arr) {
  return arr.reduce(function (lookup, name, index) {
    lookup[name] = index;
    return lookup;
  }, {});
}
Output the store header row

@name printHeaderRow
@function
@param {number} lineNumber The line number to output the header at
@param {boolean} new_page