Set the src of an html box in page code

Yes, i am trying to use a embedded html widget and so i need to get a var from storage and then “hand it off” to the src. This is my html box code.

so as of now this does not work because the src loads faster than the page can send the var to this box. so the src comes back and says “query is not defined”.

so i was trying to see if i could load the src in the page code to see if the query could be defined before the src went out.