tabs to spaces

If it ain't plain javascript, then no thanks
Reformat HTML, move script to own file.

Change locations of common js libraries, to common bag, not console.