Updated JS from test.html, created stats.js to handle request, index.html is ready to start taking input.