It is really dangerous for someone with such lack of knowledge in electrical safety to be messing around with mains voltage, especially if there are "signal" wires coming out of the contraption, and these wires are accessible so someone can touch them.
The type of relay boards (and relays) in the picture were never designed with electrical safety in mind and certainly would not pass mandatory electrical safety test requirements if they were part of a product that was marketed. That these relay boards can be bought on the internet is no guarantee that they are safe to use in mains voltage applications.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It is really dangerous for someone with such lack of knowledge in electrical safety to be messing around with mains voltage, especially if there are "signal" wires coming out of the contraption, and these wires are accessible so someone can touch them.
The type of relay boards (and relays) in the picture were never designed with electrical safety in mind and certainly would not pass mandatory electrical safety test requirements if they were part of a product that was marketed. That these relay boards can be bought on the internet is no guarantee that they are safe to use in mains voltage applications.