FIX #46: Fallback to index.js if no main attribute in package.json

@avikchaudhuri I thought the comment wasn't for me. Sorry. IMHO I think it is requried. The default index.js in the last case is used when there is no main attribute in the package.json. If there is no main attribute the code from line 123 is never executed, otherwise it would have been sufficient.