Update index.js and spec