How do I make Bricksforge compatible with pjax?

The pro form doesn’t seem to init - it’s stuck on form-loading loading state and doesn’t show up when coming from another page on the same site

I was able to “fix” it by just loading the bricksforge_elements.js in the pjax panel, fixes it on the frontend, but ofc it’s showing errors that it has already been declared