Create lib.js

Initial commit: lib.js