Palindrome Spec in JS