cleaned up javascript and html file.  Still more work to do but code is cleaner