add index and js
main