Cross-browser datepicker compatibility