Added the waitTransitionEnd parameter to the modal.show() API call