fixed IE compat issue with Date object instantiation.