Moves as much as possible into proper readable positions

- Moves as many scripts as possible to the head of index.html
- For as many vars as possible (all except 1 - editor) moves
value assignment into document ready, though initialization
(declaration?) happens in global scope
Sorry, it's actually "evaluate" that needs assigning in global

Also I forgot to move setup to the bottom again.