GRAILS-10770: g:javascript tag should be before the first r:layoutResources tag in main.gsp layout