Various Javascript control flow examples.