Add Digit-Reversal Permutation buttons
digitReverse -> digitalReverse
Generate scale options
Generate state size options
Indicate that DRP was applied
Clean up
Select current scale option
Select current state size option
Extract setPattern function
Optimize setPattern
getPatternNames -> getPatterns
Move pattern functions to hash table
Generate pattern options

Add function getPatternNames
Add pattern title to hash table
Handle onChange in pattern select
Forgotten semicolon
Select current pattern name

Add patternName to state
Fake option for non-standard state sizes
Fix log message
Redundant renderState
When state size was changed selects empty pattern
When state was altered selects unknown pattern

Add disabled pattern option "unknown"