add kmp javascript demo