Add nested loop to test.html
Remove dead code
Don't pass "r" to io.open (it's already the default)