title: Creating an AMD module using require.js
body: <p>I have the following function:</p>
  
  <pre><code>function(){
      add: function(x, y){
          return console.log(x + y);
      }
  }
  </code></pre>
  
  <p>How do I <code>define()</code> this as an AMD (Asynchronous Module Definition) compatible module using <code>require.js</code> and then use it in the browser?</p>
  
  <p>I'm looking specially for an example using <code>jsfiddle</code> to show it works in the browser directly.</p>