css and js for datepicker loads only where needed