added cross-browser datepicker support