Have you tried to put your js code in assets/javascripts @Serag8