Fixed issues with JFXApp by seperating it to a new objet for running it