Got it working. Just added the JS (not minimized) into the common/header.html.
See discourse-highlight-text/common/header.html at master · sbernhard/discourse-highlight-text · GitHub
Would be good if someone could document this behavior to the theme /component developer guide.