Move index.js into lib/