simple notes API and AJAX client