move javascript out of html
pep8 fixup