Moved index.js to lib/