Fix to allow debug.html to launch app correctly.