pythonjs backend: fixed full_fn in generate_main_html_for_server