Allow file stats json and fixed index.js loading.