fix bug of datapicker not-working in IE, FF