added some logging in index.html