Minor fixes for AJAX access to data #2