Buffered queues with higher order functions

{x: y:} coords for each square:

An eventListener watches mousemove which passes your mouse [x,y] coordinated into a Box object, which is set into a buffered queue. As items are set/shifted in the queue callbacks attached to the queue call functions on the inserted/removed Boxes, triggering them to add/remove themselves in the DOM.