ui-date properly called with angular js