Add index.html to test

Put window popup codes out of tr each loop.
Remove extra greater than sign at the end.