refactored app.js and console auto scrolls to bottom now