Created a pseudo-MVC extension with XUL. Now know how to communicate from the XUL and SDK scripts.