datepicker - focus on time input when clicking on clock and some code cleanup