https://wikimass.com/js/loop-while