Simple Javascript 2D graphics web application