more messing with AJAX stuff--still incomplete