Move lib/time.js to client/lib/time.js