Tab control with PureJS