Update index.js

should be "if"