help with literal syntax - not a function
<p>I keep trying to call getMonthDay function. I am passing a pubDate parameter and keep getting error - Break on ErrorXCopyDisableContinue
this.getMonthDay is not a function  </p>

<p>Any ideas?</p>

<pre><code>$(document).ready(function(){
    alert = console.log; 


    var ns = {

        init : function(){
            $.ajax({
                url: '/calendar/RSSSyndicator.aspx?type=N&amp;number=15&amp;category=8-0%2c4-0%2c6-0%2c10-0%2c7-0%2c17-0%2c16-0%2c9-0%2c5-0%2c3-0%2c2-0&amp;department=3&amp;numdays=31&amp;ics=Y&amp;rsstitle=Annandale+-+Event+Listing&amp;rssid=11',
                success: this.loaded                
            });
        }, 

        loaded: function(data){

            // Find item from the RSS document and iterate over reach one.
            $(data).find('item').each(function(i, value){

                // Set the title and get rid of all chars including and between ()
                var title = $(this).find('title').text().replace(/\w+\s+\(.*?\)/, "");

                var link = $(this).find('link').text();
                var pubDate = $(this).find('pubDate').text();
                alert(title); 
                alert(link);
                alert(pubDate);

                test = this.getMonthDay(pubDate);


                $('#events').append("&lt;p&gt;" + title + "&lt;br/&gt;" + link + "&lt;/p&gt;");

            });

        //  var t = items[0].getElementsByTagName('title');
        //  alert(t[0].firstChild.nodeValue);

        }, 



        getMonthDay : function(pubDate){

            var d = new Date(pubDate);

            d.month = d.getMonth();
            var months = ["January", "February", "March", "Thursday", "Friday", "Saturday", "Sunday"];
            var month = months[d.month]
            var newMonthDay = month + " " + d.getDay();

            return newMonthDay;


        }

    }



    ns.init();




});
</code></pre>
