fixing last bugs for loading in flying-saucer from tutorial HTML file