Trying to debug angularjs problems