Fix whitespace in index.html and remove excessive <script> tags.
Various improvements to web interface code.

* Declare variables
* Consistent id naming style
* Use single quotes to avoid escaping double quotes
* Add page title
* Official CDN URLs
* Remove unused css file
* Some other things