I would like to use javascript to develop general-purpose GUI applications. Initially these are to run on Windows, but I would like them to ultimately be cross-platform.
You can use the rhino JavaScript interpreter from Mozilla. It allows JavaScript to access any of the Java libraries, including Swing for GUIs.
http://www.mozilla.org/rhino/