There are three key functions that make this program run properly:
getValues
this function searches our HTML by ID for a corresponding string of text that the user entered
checkForPalindrome
This is where the magic happens. Regex is used to ignore all characters besides numbers and letters. the string is reversed, and then simply compared to the original string. It's important to change the string to lowercase so that all letters are treated equally.
displayResults
this function is here to show off the output onto the website for the user, but it also is responible for deciding whether to give a success message or a failure message based on the array of information provided in its parameters.
Together, these functions keep each piece of complexity separate, so that it is easy to read, understand, and manipulate.