Nested headers: what causes column shifts after merged cells?

I finally made it work https://codepen.io/anon/pen/VXgQeM?editors=0010

I was getting Loading... screen all the time.