making some adjustments

separating some inline html generated by javascript into variables
(hopefully into a template or into the html file after that),
reformatting slightly how select drop down is generated.
ultimately i won’t give choices in the user interface but doing this
for cleaning reasons
also it irritates me having type=text/javascript cuz thats assumed in
html 5