ajax returning response

however, there is some script in assets/functions.php that is causing a
problem with the response
doesn't work through other file

need to change jquery to use the current page because script from other
files messes up the response =(