It looks like DataAssist is just putting in it's code at the very top of the page, this probably has to do with how the code is crafted and the order that the code and template are applied to the page.
The fix for this page is to move the other include lines up to the top of the page, I have made this update so you can see the difference. When the include lines are above the code that makes use of them you should not get errors relating to the variables or other values in the include files.