updated app,js