AngularJS back, drawing in AJS controller, problem with AJS resource - getting array