Fixing some errors in css, and one in the js in index.html

While trying out the PR that adjusted the scaling, I noticed several errors in the console. This PR should fix those.