Use addCustomTag instead of addScriptDeclaration.