[#30274] JFormValidator JavaScript class does not scale well

See tracker item [#30274] JFormValidator JavaScript class does not scale well
After gist was committed, changes were made, merged  GIST to to allow for easier testing/followup