Added more Jasmine tests for the Angular app, and did a little refactoring.
- RMUR