modified test.js
modified test and index file