@gabiHow I can run espruino / javascript on the M5 Stack? 中说:

how can I make the web IDE connect to the device?

You should change the Web IDE baudrate to 115200 (in the settings page)