A simple sketchpad implemented in JavaScript