Fix initializing app in index.html