Scripting: Add javascript variable replacement