Added sanity check: multiple js include

if the javascript is loaded multiple times on the page there will no
longer be duplicated form inputs etc.