Fix function into ES6 format. Reformat for loop to be less cryptic
Fix function into ES6 format. Reformat for loop to be less cryptic

dockersamples/docker-swarm-visualizer,ManoMarks/docker-swarm-visualizer