Fixed bug in app.js, removed unnecessray test