Updated index.html with bug fixes