Add some Javascript testing

Add tests to AngularJS stuff.