[TASK] Fix CGL violations in function gettingJSforPointers()