Created lib directory and lib.js