Update colour.js

Closest yet to finding the solution to why the function doesn't work.
Changed from a case statement to an if/else statement.
However, i believe the issue lies in the "background-color": b[x] section. It doesn't apply the colour change..