inject $scope, $resource in TimelineController