modified indexTest.js