Update palindrome.js

Line 12 save split and joined string into new variable.