Convert dom nodelist to array
//Select Needed Dom Elements
const boxes = document.querySelectorAll('.box');
// ES5
var boxesArr5 =Array.prototype.slice.call(boxes);
// ES6
const boxesArray6 = Array.from(boxes);