Graphic editor with JavaScript and HTML5 API