Added captionHideClass to the caption append method