This demo shows how to initialize a go board with jGoBoard, and manipulate it using JavaScript.
Click on intersections to cycle through black stones, white stone, and clear intersection.
Go to http://www.jgoboard.com/ for additional information.