qe: Remove global JS connector variable (#4602)
* qe: Remove global JS connector variable
It is now passed as parameter for `ConnectorKind::Js`.
Was initial done as size exploration work that have not quite worked
out. I still find the refactor on itself valuable though.
* Fix test setup compilation