Adds basic AJAX API functionality