Removed example code from index.html, added debugging code to js file