Updating the app js file