Updates the picker before showing it, to handle the field being modified
outside of datepicker. Also, use .attr('data-date') instead of
.data('date') as the latter caches the value in jquery, whereas the former
always pulls from the element, again, allowing the value to be modified
outside of datepicker.