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

Ping! @KnisterPeter did you get a chance to look at this again?