[usecase-webapi] Optimize main.js.

- When back to home page, the selected set can show case list.
- When repeated case in XML file, home page can show correctly.