Add Hard#Longest_common_subsequence in JavaScript.