Added index.js and lib/index.js