Add the subsequence javascript