add global settings JS