removed setGlobal from js