Fix #1184: Incorporate JSGlobal as a field of environment info.