add missing bits, make index.html that can take arbitrary urls as input