put the debug script in index.html this time