Equal splits on resize, Ruby and JS updates