Add #js for buildWrappedText()