Probably the page template html is wrapped in a "Bundling And Minification" function (ships with our starter sites, but easy to remove). This will bundle/minify included JS and CSS and move scripts to the end of the page.
You can either remove this function or add an attribute (see below) to the script that should not be moved.
You can either remove this function or add an attribute (see below) to the script that should not be moved.
<script type="text/javascript" src="/Frontend/test.js" data-c1-nomove="data-c1-nomove" />