Load the data from index.html, enable cache and add reload button

Previous the data is loaded from iframe html, now change to load from
index.html so different tabs can share the same data and can implement
the reload button in index.html.

Use custom event to pass the data from index.html to iframe html