I am trying to add a js file with a $(document).ready function into a thymeleaf fragment, so that the js file is always added when including the fragment. When I do this, I