make test.html fully functional