How to attach js in services?
A response event is possibly too late, I think at that point, you already have a built response object, and the page is just a string that will be replaced.

You're better of using a hook for this, namely hook_page_attachments(), which exists just for the purpose of adding additional libraries to the page.