Fixed HTML example frame switching issue