Updated index.html with some bug fixes.