You should use `fragment.initialize_js('ABTestSelector')` instead. That tells XBlock that that's the function that should be used to initialize the fragment on the front-end.