Yet another lame scope fix in a JS file

Change-Id: I76037f9b7665a022c1a644122fbf76f00d167793