added date.now polyfill