added support for Date.now