please try to format your code using the </> button in the formatting toolbar. That will make it much easier to read. It took me a while to spot your questions hidden in the code.
There is no built-in way for the editor side to directly access runtime variables. If you really need to do this, you would have to create a new admin HTTP endpoint in your .js file that you can call in your .html file to access the information.