Odd because that code is generated by php
the line at server before being interpreted reads:
maxDate: new Date(<? echo date("Y, ").(date("m")-1).", ".date("d"); ?>),
Ah actually could be a combination of different login session levels. Let me see if I can recode.
Very strange! Shouldn't the maxDate be +1 month?
As your script files are in the header you should be able to add the <script> above </head> and remove the time delay.