Palindrome function

This javascript function takes a string and returns true if it is a palindrome

This is example text.