Cleaned up code, added comments so that our conversations between index.js, widget.js, and the webview html are better explained