Small AJAX based diagram editor