JS: Fix missing variable declarations
The JStg update was missing some local variable declarations, causing implicit globals (normal mode) or errors (JavaScript strict mode).
This adds them again,.
The JStg update was missing some local variable declarations, causing implicit globals (normal mode) or errors (JavaScript strict mode).
This adds them again,.