Added globals to resolve some JSHint reported errors

GCP-9015

Post commit code review : Dan Jao