some Angular JS stuff
Add Karma unit tests