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

Its this test case '{"name":"bar_lib", "main": "./index"}'. If the file defined by the main does not exists its extended by the js extension and retested.