[core][js] set echo as console.log if no require available