Bi-directional AJAX working, first pass at IO class, added untested element code