since your code should not depend on the gwt linker (and how it loads code) you need to prefix the call with the right window object. Reapp does not take that into account. So it actually needs to be:
public static native void onMyButtonClick() /*-{
$wnd.myJSfunction();
}-*/;