javascript simple palindrome