Converting Date.now to new Date().getTime()