Rails & .ejs.erb

I have some trouble using this type of tools, the format.js from to the
controllers to the {action}.js.erb in the view files…
Trying to put some onubtrusiveness int my developpment…
Everything’s working smoothly… except that at some point, navigating
from page to page through those javascript setup, the application seems
to get crazy in the inside, looping the same action, again and again =
the javascript actions are loaded many times, can see through the
console too… and finally stops, rendering as it was supposed to

I dont’ really get where the problem is, anyone here went through the
same kind of problem ?