Modified index.htm and main.js