CB-5767 Added WillShow/WillHide part of events to JS interface