title: How do I make a simple jQuery plugin that's not bound to an element?
body: <p>For some reason I can only find plugin examples that are directly bound to an existing element like $(selector).myPlugin();</p>
  
  <p>What I want to be able to do is quite simply just call new myPlugin() with options.</p>
  
  <pre><code>new myPlugin({
      'option1': 'option 1 value',
      'option2': 'option 2 value',
      'option3': 'option 3 value',
      'option4': 'option 4 value'
  });
  </code></pre>
  
  <p>I have a regular function that has up to 8 parameters, but I don't always need to define them all and I hate having to include the defaults for all of the parameters I don't need to define.</p>
  
  <pre><code>function myFunction(param1, param2, param3, param4, param5, param6, param7, param8){
      // Operations here
  }
  </code></pre>
  
  <p>Sometimes I only need to define the first and fifth parameters or whatever and I need defaults for the rest. This is a pain.</p>
  
  <p>Maybe I've missed an example like this here in my searches.</p>