[core][js] try to remove some warnings