title: jquery datepicker - override options from data-attribute
body: <p>I'm using this markup</p>
  
  <pre><code>&lt;label&gt; Date &lt;input type="text" data-datepicker="{maxDate: '+1d'}" /&gt;&lt;/label&gt;
  &lt;label&gt; Another date &lt;input type="text" data-datepicker="" /&gt;&lt;/label&gt;
  &lt;script&gt;
  $('[data-datepicker]').each(function() {
        // init the options var with some default values (dateFormat etc)
        // that can be overridden by the data-datepicker values
        // also, new values can be added to the options from data-datepicker
        // such as in the above example "maxDate"
        var options = TODO;      
  
        $(this).datepicker(options);
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I don't really know where to start with that options object..
  Starting with the default values seems like a good start</p>
  
  <pre><code>var options = { dateFormat: 'yy-mm-dd }; 
  </code></pre>
  
  <p>But then how I add/overwrite with values from the data-attribute .. I just don't know</p>