fixed error - no variable declaration in index.js