Update index.js

removing version test