Start the app outside of the JavaScript.

Start the application in the index so that the scripts may be included
with tests without starting up the application.