updated index.html to give meaningful message in console