Alternatively, would it be a better option to package the messages + the extension's JS as a ResourceLoader module and then making it available from the controller?