Vigenere cipher in js