Changed to $.get the MAI file instead of include it.
Lots of little changes needed to get tests to work.
Also did some minor cleanup of the tests.
Deleted extraneous =var= statments.
Changed to reflect code changes.