My nodejs implementation for switching my lights