adaption to js.Global change