Update datepicker.js

Forgot to add $timeout dependency.