Polyfill to read ISO formatted date in JS