Update index.html

add if operator. seems our template became smarter.