Fixed JQuery bug with Datejs