fixing datepicker to work with non input fields