JavaScript files ( e.g. with ".js" extension ) must not have <script type="text/javascript">
tags. Just write the code itself:
function returnComment()
{
$.ajax({
url: "/advisor_php/return_comment.php",
success: function(data) {
$("#advisor_comment").html("<p>" + data + "</p>");
}
});
}