Encorporated phoenix's JavaFX initialization code.