jscript: Use helpers to access string buffer in global.c.