VID-1344 removing js global var