Added palindrome problem in JavaScript