Moved to InDersign Scripting...
Line 26 of my glue_code.jsx for CS5 shows version = 6:
app.scriptPreferences.version = 6 ;
But aside of this: I think you tried to start the script from the ESTK and not from within InDesign. To your Footnotesexample_X.jsx add the following line as line #1:
This tells the ESTK to use the script with InDesign.
Alternatively start the script from the scripts palette in InDesign.