Changed front-end ajax_object to be less generic