Iterations on JavaScript | How, when, which and especially, why me?