Changes to fix IE8

Updated code so picker now works in IE8. Problem occurred when you click
a date or time in the picker, the picker would just hide, without any
changes