adding some debug code and shameless plug to index.html