Update index.html

clean code, discarded the JSON type for transferring data