Update lib/index.js