d) {
                        $scope.serverresponse = 'Note not found'

                        var getuserdata = $http({
                            method: "GET",
                            url: "/api/v2/notes/" + result[$scope.name],
                            dataType: 'json',
                            headers: { "Content-Type": "application/json" },
                            headers: {'Authorization': 'Bearer ' + localStorage.getItem('JWTSessionID') }
                        });

                 