A leightweight (0.3kB) extension to the Element prototype to allow checking, adding, removing and toggling classes.
Function to provide a similar syntax to a switch statement but with regex as cases.