moving index.js to lib/

it just make more sense