added IE8 support with date.now() polyfill