Removed most of the printing debug messages from earlier work; some compatibility fixes with ajaxselect