Added support for HTML to JavaFX.
Removed not needed code.