LPS-36464 Making the selected-labels inline
LPS-36464 Using buffer for the icon
LPS-36464 Adding the badge display
LPS-36464 Applying style
LPS-36464 Improve usability in scheduler
LPS-36464 I think we generally declare functions first, and then have blocks of code that make  JS calls