instructions added to palindrome.js