remove unused lines in index.html JavaScript