added response handling to app.js (angular). all consistencies should be gone now.