adjusted index.html and general.js