If you start at the first thumbnail and hit Play, it behaves as expected, exiting after the last image. If you start at the first thumbnail and hit Next, then hit Play, it also works fine. But if you start by clicking the 2nd, 3rd, or 4th thumbnail and hit Play, it gets to the last image and stops, rather than exiting. In Chrome, the console complains about Maximum call stack size exceeded. In Firefox, it says Too much recursion.