diff --git a/html5/shell.html b/html5/shell.html
index ce48746..fe022b1 100644
--- a/html5/shell.html
+++ b/html5/shell.html
@@ -4,36 +4,190 @@
-
Avoid
+ Avoid: the game
-
-
+
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- {{{ SCRIPT }}}
-
+
+ statusElement.innerHTML = text;
+ },
+ totalDependencies: 0,
+ monitorRunDependencies: function(left) {
+ this.totalDependencies = Math.max(this.totalDependencies, left);
+ Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies-left) + '/' + this.totalDependencies + ')' : 'All downloads complete.');
+ },
+ //noInitialRun: true
+ };
+
+ Module.setStatus('Downloading...');
+
+ window.onerror = function() {
+ Module.setStatus('Exception thrown, see JavaScript console');
+ spinnerElement.style.display = 'none';
+ Module.setStatus = function(text) { if (text) Module.printErr('[post-exception status] ' + text); };
+ };
+
+
+
+
+ {{{ SCRIPT }}}
+