define ng-model on the datepicker element, not the parent div