bug fixed
index.js for test