cleared bugs in app.js and script.js