This is a nice applet indeed.
Yet I think I've found a small bug.
When the index of refraction is decreased below 0.22 (e.g. for sound from air to glass it is 0.06) the critical angle remains at 12.9 degrees.