read index.js if pkg.main not exists