Modify app.js for dropdown bug fix