make index.html work as local file as well