fix server bug and unnecessary references in index.html