Nav tabs JS for adding controls when tabs width are higher than container