This commit also moves index.js into js/lib. Which one is intentional? (I would prefer js/index.js, to preserve the relationship)

Also, this package.json should move into the `js` directory, if everything else is.