Adding app code to index.html