[BUGFIX] Fix undefined variables in gettingJSforPointers()