Reordered includes and added mandatory attributes for results-index view

Prior changes have changed the way includes.js is used, in the results view the script include has additional attributes defining the profiles to display. These changes seem to have broken the results-index view.

The results-index view failed because:

- jquery.tmpl.js requires MiniProfiler.jQuery from includes.js
- includes.js looks for a script with the id='mini-profiler'
- the attribute data-ids is mandatory

This is a temporary fix as I suspect a correct fix would be to change the JavaScript to handle the absence of these attributes and continue initialisation.