Update index.cgi

Minor code changes.