Updated advanceddate js