fixed index.js variables