Add javascript to a theme component

Oh, think I answered my own question via Content security policy  |  Articles  |  web.dev