set main script to  index.js, fixed #142