created lib.js