shimmed for ie < 8 to fix missing Date.toISOString