JS to obtain individual flex lines within a flexbox container