added the script in index.js for update the app