Change javascript to java calls to match javafx
Merge ../swing
Add javafx application class to helloworld example