component: fix index.js
fix test.html