feat(main) add index.js; use global library