Why am I getting undefined in this script
<p>Trying to output the date plus 30 days.  I've loaded the script today and it says for the day, 'Undefined', the rest of the script is ok. 'Undefined, April 7, 2013'.</p>

<p>Here is my script:</p>

<pre><code>// handle the due date
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday");
var monthNames = new Array("January","February","March","April","May","June","July", "August","September","October","November","December");    
var todayPlus30 = new Date();
todayPlus30.setDate(todayPlus30.getDate()+30)
var dateStr = (dayNames[todayPlus30.getDate()] + ", " + monthNames[todayPlus30.getMonth()] + " " +  todayPlus30.getDate()  + ", " +  todayPlus30.getFullYear());

$('#date').html(dateStr);
</code></pre>
