anchor.diff:  			end
   	end.
   
  -optimize_js([], _) ->
  +optimize_js(Files, Dest) ->
  +	optimize_js(Files, Dest, true).
  +
  +optimize_js([], _, _) ->
   	[];
  -optimize_js(Files, Dest) ->
  +optimize_js(Files, Dest, Advanced) ->
   	Cmd = lists:flatten(["java -jar $ZML_CLOSURE_JAR",
   		lists:map(fun(A) -> [" --js=",A] end, Files),
   		" --js_output_file=", Dest,
  -		" --compilation_level=ADVANCED_OPTIMIZATIONS",
  +		case Advanced of
  +			true -> " --compilation_level=ADVANCED_OPTIMIZATIONS";
  +			false -> ""
  +		end,
   		" --warning_level=QUIET"]),
  -	string:strip(os:cmd(Cmd)).
  +	case string:strip(os:cmd(Cmd)) of
  +		[] -> ok;
  +		Result -> erlang:error({"Javascript Error", Result})
  +	end.
  
positive.code: 			"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">\n"}]).
  
  -define(DEFAULT_TYPE, xhtml_strict).
  
  run_handler(_ID, Attr, _Children, FAST, SourceFN, StagingDir) ->
  	% TODO:
  
negative.code: 			error -> TwinJSFiles;
  			{ok, Scripts} -> Scripts ++ TwinJSFiles
  		end,
  	AllFilesAbs =
  		lists:map(
  			fun([First | _T] = FName) ->
  				case First of
  					$/ -> FName;
  					_ ->
  						case string:str(FName, "://") of
  							0 -> filename:join([Dir, FName]);
  							_ -> FName
  						end
  				end
  			end, AllFiles),
  	lists:partition(fun(FN) -> filename:basename(FN, ".js") /= BaseName end,
  		AllFilesAbs).
  
  % Take the potential list of javascript files and load them into a temporary
  % staging directory.  Ignore duplicate files.  Pull any remote files.
  