v6: js logic for sideStats