Can you write a function that checks if a word is the same read forwards and backwards? Share your solution using JavaScript below.