Learning JavaFX and JS cross-loading