[core][js] gc engine: fix tags enumeration