 					url: toolUrl.value,
 					features: "menubar=no,status=no,toolbar=no"
 				},
-				"if (!weave.external_tools) weave.external_tools = {};\
-				 weave.external_tools[windowName] = window.open(url, windowName, features);\
-				 weave.external_tools[windowName].toolPath = toolPath;\
-				 weave.external_tools[windowName].weave = weave;"
+				"if (!weave.external_tools) weave.external_tools = {};",
+				"weave.external_tools[windowName] = window.open(url, windowName, features);",
+				"console.log(toolPath);",
+				"weave.external_tools[windowName].toolPath = toolPath;",
+				"weave.external_tools[windowName].weave = weave;"
 			);
 		}
 		override public function dispose():void

		public function ExternalTool()
		{
			toolUrl = requestObject("toolUrl", LinkableString, true);
			toolUrl.addGroupedCallback(this, toolPropertiesChanged);
		}
		private function toolPropertiesChanged():void
		{

	import weave.api.WeaveAPI;
	import weave.compiler.Compiler;
	import weave.core.LinkableHashMap;
	import weave.core.LinkableString;

	public class ExternalTool extends LinkableHashMap
	{
