Palindrome Program In Javascript