tweak some small stuff

use Date.now() since we don't need nanosec precision