Update datepicker.js

Fix for issue #2789 where it was throwing "$apply already in progress" when using ng-focus to open the popup.