Once thing WA might want to consider is changing the placement of the "include code" it produces.
Rather than insert it at the top of the page, maybe it should be inserted just before the <HEAD> of the page. That way all code that is created before the head (Recordsets, custom code, variables, included functions, etc... etc...) will automatically be available to the included page without the need to move the code there manually.