Mongo is missing toISOString in older versions. Adding polyfill