"}\n" +
"\n" +
"window.addEventListener(\"DOMContentLoaded\", function()\n" +
"{\n");
for (int i = 0; i < coordinates.size(); i++) {
Coordinate coordinate = coordinates.get(i);
if (coordinate != null) {
output.write("drawPixel(\"" + i + "\", " + coordinate.x()
+ ", " + coordinate.y() + ");\n");
}
}
output.write("});\n" +
"</script>");