Update index.html

Added test function