Win32 and Javascript now use similar UI code.