Check for a palindrome using Javascript

What is a palindrome? Oxford Dictionary defines a palindrome as a word, phrase, or sequence that reads the same backwards as forwards, e.g. madam or nurses run. Let's use Javascript to check if a word is a palindrome Function