fix typo within index.js
fix issue #14
fix issue #13