loading index.js after html