tied everything in with index.html.

Also fixed some errors