Tests.outputMethod = (args...) -> newOutput = args.join "\n" # escape html newOutput = newOutput.replace(/&/g, "&").replace(//g, ">") # highlight the source of the error newOutput = newOutput.replace /\/([^:/]+):([0-9]+):([0-9]+)/, "/$1:$2:$3" document.getElementById("output-div").innerHTML += "