JavaScript implementation: Freeze columns, adjust column width