Substantial refactoring.
minor change to index.html