Fix for script typos

There are a var and a comma missing in the inline scripts in the index.html. 
Nothing major, but I've been told to leave things better than I found them ;)