Finds the difference between two JavaScript arrays by computing the longest common subsequence between them