Asynchronously loading of the npm and directory modules