purplecoatToggle function

Extracted existing code to a purplecoatToggle function.
This allows you to programmatically toggle a set of purplecoat
Usage example
```javascript
purplecoatToggle('odd')
```