A JS implementation of <input type="scribble"> from HTML 3