Transform select2 options to correct json
Removed inline_script from Select2TextMixin