Auto-cache now works for both .json and .js files.  Replaced object comparison methods.