title: Access object in script from duo built js
body: <p>I am using duo.js but would like to expose an object so that it can be accessed in other parts in my html file.</p>
  
  <p>In my index.js file I have;</p>
  
  <pre><code>var uuid = require('gjohnson/uuid');
  var bind = require('ianstormtaylor/bind');
  function User(options){
    this.protocol = window.location.protocol;
    this.options(options);
  }
  User.prototype.randomID = function(){
    return uuid();
  };
  
  module.exports = bind.all(new User());
  var user = module.exports.User = User; 
  </code></pre>
  
  <p>I run <code>duo index.js</code> to create the <code>build/index.js</code> file.</p>
  
  <p>I then want to be able to access to <code>user</code> object in the script in index.html:</p>
  
  <pre><code>&lt;script type="text/javascript" src="build/index.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  (function() {
      console.log(user.randomID());
  })();
  &lt;/script&gt;
  </code></pre>
  
  <p>But I get `ReferenceError: user is not defined'. I'm still learning about duo and am not familiar with the structure. How do I correctly expose the user object so that it can be accessed?</p>