javascript loops examples