Here is how I do it for a two page site. Just a module pattern that has two functions one for each page. An id on page 1 identifies it and selects the branch. window.onload = function(){ new ControlEntry(); }; var ControlEntry = ( function () { var ControlEntryI = function...