The most interesting part of this demo is the tiny javascript source code, using no recursive function.