chage status function

1. bug fixed - index.html
2. add main.js
3. add change status function