typeof doesn't need the quotes
```
if (typeof colour === 'number')  { 
```
Looks like there are a few more like this below.
Sorry for more issues that are unrelated to the original PR :wink: