moved inline script out of import-export

fixed the inline javascript/onclicks, linted and reindented. Fixed a
couple minor issues.