Null/Empty Get [Simple]

Page 1:
import { ChangeName } from “public/Data.js” ;
ChangeName ( $w ( ‘#NameTxt’ ). value );

Page 2:
import { GetName } from “public/Data.js” ;
$w ( ‘#NameTxt’ ). text = GetName ();

Where Data.js is:
var CustName ;
export function GetName () {
return CustName ;
}
export function ChangeName ( Name ){
CustName = Name
}