Added test code to index.html