surface LayoutMode constructor
masonryHorizontal fix
LayoutMode.getSegmentSize
check that sortHistory first item
move js to js/