[DEL] Lua script: header, footer should be shared to functions. This
simplify method call
[DEL] Lua script: 'replacements' variable from Lua script to be used for
all methods