Added drawing for target triangles. Organized code; especially javascript.