Actually add type.js and move to lib/