Set the GID as a global in JS env