fix JS error GLOBALS on every pages