Issue #5335: Fix js-moonwarriors compilation issue