edited script.js for launch app method