added code to test.html