package ${package};

import org.teavm.dom.browser.Window;
import org.teavm.dom.html.HTMLDocument;
import org.teavm.dom.html.HTMLElement;
import org.teavm.jso.JS;

public class Client {
    private static Window window = (Window)JS.getGlobal();
    private static HTMLDocument document = window.getDocument();

    public static void main(String[] args) {
        HTMLElement div = document.createElement("div");
        div.appendChild(document.createTextNode("TeaVM generated element"));
        document.getBody().appendChild(div);
    }
}

@@ -35,44 +35,11 @@
 avm.
-dom.browser.Window;%0Aimport org.teavm
+jso
 .dom
@@ -75,16 +75,20 @@
 g.teavm.
+jso.
 dom.html
@@ -104,33 +104,8 @@
 ent;
-%0Aimport org.teavm.jso.JS;
 %0A%0Apu
@@ -129,30 +129,29 @@
  %7B%0A    p
-rivate
+ublic
  static 
 Window w
@@ -146,158 +146,90 @@
 tic 
-Window window = (Window)JS.getGlobal();%0A    private static HTMLDocument document = window.getDocument();%0A%0A    public static void main(String%5B%5D args) %7B
+void main(String%5B%5D args) %7B%0A        HTMLDocument document = HTMLDocument.current();
 %0A   

Fix Client.java file in maven archetype