Javascript Palindrome Check Example