IE8 compatibility for Date parsing