Added Date.now() polyfill for use later