Check If A String Is A Palindrome in JS