Javascript: control flow

By Dmitry Kabanov