Add a few comments on type.js