Changed from $http to $templateCache to get template