Added support for running AScripts with both Swing and JavaFX