My plan is to store all these URDL's in a single global array, g_layout like this:

var g_layout=[
  [],
  [0,2,0,7],
  [0,3,0,1],
  ...
];

Note the empty first entry since there is no scene number zero.
Your task is to work out the entire array and store this code in a globals.js file.

Note that scenes 10 and 17 though side-by-side are not connected.

My globals.js
var g_layout=[
  [],
  [0,2,0,7],
  [0,3,0,1],
  [4,0,0,2],
  [5,0,3,0],
  [6,0,4,0],
  [0,0,5,0],
  [0,1,0,8],
  [10,7,0,9],
  [0,8,0,0],
  [11,0,8,0],
  [12,0,10,0],
  [13,0,11,0],
  [14,0,12,0],
  [0,15,13,0],
  [0,16,0,14],
  [0,0,0,15],
  [0,0,9,0]
];