title: Javascript setting object options
body: <p>When im working with javaScript plugins I often come across this approach for adjusting a plugins behaviour. </p>
  
  <pre><code>$('.mySlider').slider({status: "burnt"});
  </code></pre>
  
  <p>If I try and replicate this kind of approach with an object like so</p>
  
  <pre><code>var Egg = function(){
  
      this.details = {
          status: "cooked",
          make: "Happy Egg"
      }
  
  };
  
  
  
  var egg = new Egg({status: "burnt"});
  console.log(egg.details.status);
  </code></pre>
  
  <hr>
  
  <p>I just get a bunch of undefined messages from the console. can anyone show me how to create an object and then change its properties like the above example?</p>
  
  <p>Thanks</p>