default to 'index.js' if no main