Update appScript.js