Update time.js

Simpler iteration