add script for datepicker