title: Tumblr.js API -- require() fails
body: <p>I've been trying to get tumblr.js api to work for about 3 days now on localhost and hosted. My app and keys are valid since I was able to access it with php. This is the readme.md example provided from <a href="https://github.com/tumblr/tumblr.js" rel="nofollow">https://github.com/tumblr/tumblr.js</a> with changes provided by reviewing <a href="https://groups.google.com/forum/#!topicsearchin/tumblr-api/tumblr.js/tumblr-api/gz8Zv-Mhex4" rel="nofollow">https://groups.google.com/forum/#!topicsearchin/tumblr-api/tumblr.js/tumblr-api/gz8Zv-Mhex4</a>.</p>
  
  <pre><code>    var tumblr = require('index.js');
      var client = tumblr.createClient({
        consumer_key: '&lt;consumer key&gt;',
        consumer_secret: '&lt;consumer secret&gt;',
        token: '&lt;oauth token&gt;',
        token_secret: '&lt;oauth token secret&gt;'
      });
  
       // Show user's blog names
      client.userInfo(function (err, data) {
          data.blogs.forEach(function (blog) {
               console.log(blog.name);
          });
      });
  </code></pre>
  
  <p>Using firebug, I find that require is not defined selecting require('index.js') as the issue. 
  index.js holds:</p>
  
  <pre><code>     var tumblr = require('lib/tumblr');
       tumblr.request(require('request'));
       module.exports = tumblr;
  </code></pre>
  
  <p>Upon complete failure I've search online and reviewed countless articles, blogs and posts to no avail. Where am I messing up at? I want to use the api with minimal or no work-around.    </p>