Values assigned to header/footer text fields are not persistent in live mode (preview mode ok)

What about using such Values on a PUBLIC.JS-file?
A public.js-file can be coneccted to backend/frontend & masterpage.

Header = Masterpage!