Update index.js

support other version then 1.2