adds the #main jquery obj to global