Why can't i use this string as a method call?
<p>This is my script, for some reason when i use <code>contactForm.container[contactForm.container.config.effect]();</code> it says "contactForm.container.config is undefined " ... I can very well see it defined! what am i doing wrong? Thank you</p>

<pre><code>&lt;script&gt;

(function(){

  $('html').addClass('js');


 var contactForm ={

     container: $('#contact'),

     config: {
          effect:'slideToggle'
            }, 

     init: function(){
        $('&lt;button&gt;&lt;/button&gt;',{
           text: 'Contactame'
        })
               .insertAfter('article:first')
               .on('click', this.show);

            }, 

     show: function(){
                contactForm.close.call(contactForm.container);
                contactForm.container[contactForm.container.config.effect]();
            }, 

     close: function(){
                var $this = $(this);
                  $('&lt;span class=close&gt;X&lt;/span&gt;')           
                       .prependTo(this)
                       .on('click',function(){

                                  $this.hide();

                                             })
                     } 

  };
       contactForm.init();
    })();

&lt;/script&gt;
</code></pre>
