updated main.js and index.html, cleaned up files