Changed EVERY 'for' loop because Sylvain doesn't like them.  Changed 'deleted' values to 'hidden'.  Ajax reset to old values