sets up all call for <main> jquery obj to use global