Yii Framework duplicates javascript event , when using ajax to load view which contains javascript (js:)

Yii Framework duplicates javascript event , when using ajax to load view which contains javascript (js:)

$(body).on('click',... jquery will add new script will run multiple times, +1 on each request , because it is registered on body tag which static in page

changed to
$(body).off('event','#id').on('event','#id')
to force jquery to replace the event on each ajax request