[core][js] gc_engine: fix variable name