Javascript implementation of switch puzzle found in Tomb Raider custom level Sandstorm over Daraya

Click the column numbers to toggle the switches.

X 0 1 2 3 4
0 0 1 2 1 0
1 1 2 1 2 1
2 1 2 0 2 2
3 2 1 2 1 1
4 0 1 1 1 0