Use local copies of variables.
Select S6 by default in demo.
Make JSHint happy.
Whitespace.