fixed index.js syntax flub