individual/moveable squares created in JS - functional programming