Linted (and tweaked) time.js