Use index.js as main, add npm test script.