problem solved. i have to import external script with
It seems that importing scripts in a classic way creates conflicts in nodebb
Thank you @PitaJ for pointing me in the right direction. I adapted my code to the link you sent me.
Just by doing this made it work client side. But then it stopped working server side. That was easily fixed though by running helpers.register in my library file.
Hope this helpes someone!
Thanks ! I had tried this before but something else was wrong.
Now, everything is ok !!! Thanks again !