updated index.html with more complex code