cleanup scripts a bit in index.html