Why is this JS variable being run on page load
<p>I don't understand why <code>MC.caro.myTimer()</code> is being run on a page load, its a variable. So how is this getting run without me calling it.</p>

<p>I thought it might be something to do with my auto executing function?    </p>

<pre><code>    var MC = {};

    (function($){
        "use strict";

        MC.init = function (){
            //disable to turn off carousel
            MC.caro.init();
        };

        MC.caro = {
            init: function(){
                //Build carousel for us to use
                MC.caro.build();
                //Bind click events to buttons
                $('.mc-carousel--nav--buttons').on('click','li',function(){
                    MC.caro.advance($(this));

                    //stop the current ticking
                    MC.caro.stopMyTimer();

                    //Start up movement after 15seconds
                    setInterval(function(){MC.caro.myTimer()},10000);
                    console.info('running');
                });
            },
            build: function(){
                MC.caro.jsonRun(function(){
                    console.info('running1');
                });
            },
            myTimer: function(){
                console.info('running2');
                MC.caro.advance(nextItem,'slow');
            },
            //Sets up the timer
            timer:setInterval(function(){MC.caro.myTimer()},5000),
            stopMyTimer: function(){
                clearInterval(MC.caro.timer);
            }
        }
    })(jQuery);

    MC.init();
</code></pre>

<p>There is another problem:</p>

<p>when i click on <code>$('.mc-carousel--nav--buttons').on('click','li',function(){</code> the code will wait 15 seconds then run. As expected. but if i click it 5 times really quickly it will wait those 15seconds then run in exactly the same time and order i clicked, meaning that <code>MC.caro.stopMyTimer();</code> isn't working which is called inside my click event.</p>

<p>Also, this isn't the complete code, i can't put it into fiddle either as it has big dependencies on an intranet. </p>

<p>So appoligies that you can't see a working example.</p>
