updated app js file