Simple paint application using the Document Object Model