keep js in index.html for now because of template vars
new docs