Computes the difference between two JavaScript arrays by finding the longest common subsequence between them.