title: How to do module argumentation in JavaScript?
body: <p>I have the following code in Node Js:</p>
  
  <pre><code>var xtend=require('xtend');
  var d=function(options){
            options=xtend({
                  text:' ',
                  style: ' '
            }, options);
       };
  </code></pre>
  
  <p>I want to do the similar thing in normal JS but couldn't figure out. 
  Can anyone please help me how to do similar functionality in Js.
  I'm trying to make a module in js.</p>