protected String getJsLineInitialization() {
        String fileName = uri.replace("\\", "\\\\").replace("'", "\\'");
        StringBuilder sb = new StringBuilder(format("if (! _$jscoverage['%s'].branchData) {\n", fileName));
        sb.append(format("  _$jscoverage['%s'].branchData = {};\n", fileName));
        for (Integer line : lineConditionMap.keySet()) {
            sb.append(format(initBranchLine, fileName, line));
            for (Integer condition : lineConditionMap.get(line))
                sb.append(format(initBranchCondition, fileName, line, condition));
        }
        sb.append("}\n");
        return sb.toString();
    }