Adds js var globalSettings to form page