Update index.js

fix error throw