replace bookmarklet code in html with latest version
if path isDirectory, serve path/index.html