Fix https://github.com/geoadmin/mf-geoadmin3/issues/1083 and put loader.js at the end of the file