facing problem in send and recieving the dada between jquery pages

facing problem in send and recieving the dada between jquery pages

i am not able to send data between jquery pages (one is data accepting page and other is  process page )and i am using eclipse oxygen do i need to import jquery through script tag or eclipse supports jquery by default.. and my code goes as follows:
data accepted like this:
$.cometChat.send($(textInput).val());

data is recieved by process page like this
(function($){
   
    $.cometChat  = {
           
            value:undefined,
           
            recieve :function(message)
            {
               
             this.value=message;
             alert("hi"+this.value);
           
            }
    };
   
})(jQuery);