modified stateTest.html for proposed html changes

to state page.  Also added a renamed copy of the js.js and database.js
files with proposed js changes.  It looks to me like it should function
properly.  Commit comments to be added on github.