assigning an empty object of $scope.commentData = {};