Updated app,js