Control floating WebView from other javascript?

I am developing two fairly sophisticated floating web views (call them WV1 and WV2) that will be running all the time. From within some UNRELATED javascript keyboard triggered action (cal it KS0), is it possible to control WV1 and/or WV2? I would like to perform the following actions from within KS0:

  1. Close WV1 and/or WV2
  2. Reposition WV1 and/or WV2
  3. Potentially other actions in the future

I'm not opposed to using AppleScript but I'm not sure how I can specify the process to do things like the above.

About the only thing I can think of is to have WV1 and WV2 have code to monitor the change of any BTT variable via BTTNotfication. Each would then have code to monitor a specific variable for instructions on how to act on their own view. The only thing that bothers me with this approach is that it each view must monitor a bunch of variable change notifications that are unrelated to that view.

Is there a better way of doing this that I am overlooking?

Thanks for any comments!