Multiples pins JavaScript

You are using the same variable statusPin for both LEDs.
How should one variable hold independent states of two outputs?

Similar to your other question two months ago

And you are still using Spark instead of Particle