Update app.js

Fixed bug where the app wouldn't work if there was only one type of info coming in