uses JavaScript to check the correctness of two XML files