Updates to app.js - added refresh logic, cleaned up unecessary bits.