evalScripts option in Ajax.Updater not appending javascript function to the current page

I have a view partial that gets displayed on the current page when I click a link which triggers an Ajax.Updater request.
Now the view partial that I add dynamically has following javascript function defined in