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

No, the index.js in only tested if there is no package.json since its in the else block.
Therefore I'll defaulted the result of package.json parsing to index.js in case there is no main attribute.