Use the faster Date.now if available.
Merge pull request #1296 from smelnikov/master

Use the faster Date.now if available.