New ref panel: fix JS
Created by: chrismwendt
Fixes https://github.com/sourcegraph/sourcegraph/issues/35902
Looks like JS was missed in https://github.com/sourcegraph/code-intel-extensions/pull/223. It was later fixed in https://github.com/sourcegraph/code-intel-extensions/pull/685 and the new ref panel needs to mimic that behavior.
Test plan
Ran locally
App preview:
Check out the client app preview documentation to learn more.