[time.js] added time.Time.maxPrecision and tests

Change-Id: I305a68dd2ee26284196bbc54ae637747fd6f0d37