Relay active low with johnny-five

Hi! I am controlling some lights with an javascript johnny-five app and i switched from using old TIP120's to using a relay. However the transistors use an active HIGH and the relay use an active LOW to activate

So now when i open the app its inverted (off is on).
This is the code i use http://johnny-five.io/examples/relay/

How can i invert it? Its not possible to change the javascript node.js app, it would be very hard, it has to be done in the johnny five code

Thankyou !

Please do us all a favour and post the code here to avoid the need to go elsewhere and download it.

You will, of course, have read this before posting a programming question

UKHeliBob:
Please do us all a favour and post the code here to avoid the need to go elsewhere and download it.

You will, of course, have read this before posting a programming question

Sure! Sorry, it is my first time here

Is there some part of POST YOUR CODE HERE that is too hard for you to understand? Posting it somewhere else is NOT what you were asked to do.

PaulS:
Is there some part of POST YOUR CODE HERE that is too hard for you to understand? Posting it somewhere else is NOT what you were asked to do.

Relax man its my first post. He asked not to having to download it so i pasted it in instead

board = new five.Board({ port: "COM5" });
board.on('ready', function () {
// Counting down pins because that's the orientation
// that my Arduino happens to be in
pump0 = new five.Relay({
pin: 2,
type: "NC",
isOn: true,

});
pump1 = new five.Relay({
pin: 3,
type: "NC",
isOn: true,
});
pump2 = new five.Relay({
pin: 4,
type: "NC",
isOn: true,
});
pump3 = new five.Relay({
pin: 5,
type: "NC",
isOn: true,
});
pump4 = new five.Relay({
pin: 6,
type: "NC",
isOn: true,
});

board.repl.inject({
p0: pump0,
p1: pump1,
p2: pump2,
p3: pump3,
p4: pump4
});
pump0.open();
pump1.open();
pump2.open();
pump3.open();
pump4.open();

He asked not to having to download it so i pasted it in instead

You put it somewhere else where we'd have to downloaded it. That did NOT change a thing.

That code hasn't a snowball's chance in hell of compiling for the Arduino.

Mrpink07:
He asked not to having to download it so i pasted it in instead

He also asked you to read something:

UKHeliBob:
You will, of course, have read this before posting a programming question

Which you said you'd do:

Mrpink07:
Sure!

but clearly you didn't because you didn't use code tags when you posted your code:

When you post your code put it between

...

tags. You can do that by hitting the </> button above the posting area.

Also, when you post a URL, use the chain links button on the toolbar to make it clickable. Like this:

This will make it easier for people to help you with your question.

My advice is to avoid that johnny-five garbage. They're trying to teach electronics when they don't understand the most basic concepts(from JavaScript Robotics: Motor with Johnny-Five):