Problem with Jquery tabs Ajax mode

Problem with Jquery tabs Ajax mode

Hi
I used Jquery tabs for my index page in ajax mode (By using <a href="profile.php"> in list section). It works and invokes html from source(profile.php). Also java scripts that i have implemented in body section of source file executes successfully. I have included a js file in that source file, too. But those js files doesn't execute.
I tried following hint and java scripts included in profile.php executed successfully. But I think it is stupidly, And now I'm looking for a regular way to do this.
  1. function fetch_profile(){
                    $.get('profile.php', show_profile);
                }
                function show_profile(res){
                    $('#tabs-4').html(res);
                }