index.js update for loading.