Finished AJAX/JSON validator system
Abstracted actual validation action to a generator function
Added supporting javascript functions for ease of use