It isn't madness! But *contentPage* is also used in a Tabs.open call in simulator.js, for which it needs to be the actual URL. So this wildcard character should get added to the URL when it is used in main.js.