Code Sample for a Javascript checkerboard