The purpose is to condense a multitude of pages - a site - into one page - one HTML document.
The array begins as:
var array = "content<page>content".split("<page>")
which is the content for two pages.
var page0 = array[0]
var page1 = array[1].